
package events;

import java.util.EventObject;

public class DBEvent extends EventObject {
    
    private Object data;
    
    //database Schema Events
    final String CREATE_SCHEMA_EVENT = "CREATE_SCHEMA_EVENT";
    final String UPDATE_SCHEMA_EVENT = "UPDATE_SCHEMA_EVENT";
    final String MIGRATE_SCHEMA_EVENT = "MIGRATE_SCHEMA_EVENT";
    
    //User Db Events
    final String ADD_USER_EVENT = "ADD_USER_EVENT";
    final String UPDATE_USER_EVENT = "UPDATE_USER_EVENT";
    final String DELETE_USER_EVENT = "DELETE_USER_EVENT";
    final String EXPORT_USER_EVENT = "EXPORT_USER_EVENT";
    final String IMPORT_USER_EVENT = "IMPORT_USER_EVENT";
   
    //Schedule Db Events
    final String ADD_SCHED_EVENT = "ADD_SCHED_EVENT";
    final String UPDATE_SCHED_EVENT = "UPDATE_SCHED_EVENT";
    final String DELETE_SCHED_EVENT = "DELETE_SCHED_EVENT";
   
    //Activity Events
    final String ADD_ACTIVITY_EVENT = "ADD_ACTIVITY_EVENT";
    final String UPDATE_ACTIVITY_EVENT = "UPDATE_ACTIVITY_EVENT";
    final String DELETE_ACTIVITY_EVENT = "DELETE_ACTIVITY_EVENT";
    
    public DBEvent(Object source, Object d){
        super(source);
        data = d;
    }
   
    public Object getData(){
        return data;
    }
}
